<?php
namespace app\home\common\controller;

use think\Controller;
use	think\Db;
use think\facade\Session;
use think\facade\Cookie;

class Common extends Controller
{
    public function _empty()
    {

    }
    public function initialize()
    {
        if(!Session::has("userInfo")) {
            if(request()->action() != "login" && request()->action() != "registered") {
                $this->redirect("login");
            }
        }
    }
}